package im.xz.cn.xiacore.commands.normal;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
public class backHome implements CommandExecutor {
    @Override
    public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) {
        Player player = (Player) commandSender;
        player.performCommand("p home");
        player.sendMessage(ChatColor.GREEN + "你可用/spawn指令回到主世界,/backhome随时回到你的地皮");
        return false;

    }
}